<%@include file="connection.jsp" %>
<%

st=con.createStatement();
rs=st.executeQuery("select * from company");
out.print("{");
while(rs.next()){
    out.print("\""+rs.getString(2)+"\":");
    if(!rs.isLast())
    out.print("{\"name\":\""+rs.getString(3)+"\"},");
    else
    out.print("{\"name\":\""+rs.getString(3)+"\"}");    
    
}
out.print("}");       


%>